<%@ page language="java" import="java.util.*, java.text.*,com.zjut.zs.util.tools.*,com.zjut.an.util.tools.*,com.zjut.an.util.system.*,
com.zjut.zs.review.manager.*,com.zjut.zs.review.dao.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>layui</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link rel="stylesheet" type="text/css" href="../plugins/layuiadmin/layui/css/layui.css" media="all">
  <!-- 注意：如果你直接复制所有代码到本地，上述css路径需要改成你本地的 -->
</head>
<style type="text/css">
/* 防止下拉框的下拉列表被隐藏---必须设置--- */        
.layui-table-cell {            
	overflow: visible !important;        
} 
/* 使得下拉框与单元格刚好合适 */       
td .layui-form-select{
	margin-top: -10px;
	margin-left: -15px;
	margin-right: -15px;
}  
.layui-form-select dl {
    max-height: 360px;  /* 这里根据实际情况设置相应的下拉弹出选项框的最大高度 */
}
body .layer-ext-myskin .layui-layer-content {
    overflow: visible;
}
</style>
<%
ZsReviewManager rmanager = (ZsReviewManager) SpringContextUtil.getBean("ZsReviewManager");
String url = "";
if(request.getParameter("anUsId")!=null) {
	url += "anUsId="+request.getParameter("anUsId");
}
%>
<body>

统计 (最新统计需刷新后查看)
<%

ZsReview re =new ZsReview();
if(request.getParameter("anUsId")!=null) {
	re.setAnUsId(Integer.parseInt(request.getParameter("anUsId")));
%>
<table class="layui-table" lay-even >
  <colgroup>
    <col width="150">
    <col width="200">
    <col>
  </colgroup>
  <thead>
    <tr>
      <th>分值</th>
      <th>数量</th>
    </tr> 
  </thead>
  <tbody>
    <tr>
      <td>A+</td>
      <td>
      <%
      re.setNum("A+");
      int A1=rmanager.getCountByInstance(re);
      out.print(A1); 
      %>
      </td>
    </tr>
    <tr>
      <td>A</td>
      <td>
	  <%
      re.setNum("A");
      int A2=rmanager.getCountByInstance(re);
      out.print(A2); 
      %>
		</td>
    </tr>
    <tr>
      <td>A-</td>
      <td>
	  <%
      re.setNum("A-");
      int A3=rmanager.getCountByInstance(re);
      out.print(A3); 
      %>
		</td>
    </tr>
    <tr>
      <td>A总计</td>
      <td>
	  <%
      out.print(A1+A2+A3); 
      %>
		</td>
    </tr>
    <tr>
      <td>B+</td>
      <td>
      <%
      re.setNum("B+");
      int B1=rmanager.getCountByInstance(re);
      out.print(B1); 
      %>
      </td>
    </tr>
    <tr>
      <td>B</td>
      <td>
	  <%
      re.setNum("B");
      int B2=rmanager.getCountByInstance(re);
      out.print(B2); 
      %>
		</td>
    </tr>
    <tr>
      <td>B-</td>
      <td>
	  <%
      re.setNum("B-");
      int B3=rmanager.getCountByInstance(re);
      out.print(B3); 
      %>
		</td>
    </tr>
    <tr>
      <td>B总计</td>
      <td>
	  <%
      out.print(B1+B2+B3); 
      %>
		</td>
    </tr>
    <tr>
      <td>C+</td>
      <td>
      <%
      re.setNum("C+");
      int C1=rmanager.getCountByInstance(re);
      out.print(C1); 
      %>
      </td>
    </tr>
    <tr>
      <td>C</td>
      <td>
	  <%
      re.setNum("C");
      int C2=rmanager.getCountByInstance(re);
      out.print(C2); 
      %>
		</td>
    </tr>
    <tr>
      <td>C-</td>
      <td>
	  <%
      re.setNum("C-");
      int C3=rmanager.getCountByInstance(re);
      out.print(C3); 
      %>
		</td>
    </tr>
    <tr>
      <td>C总计</td>
      <td>
	  <%
      out.print(C1+C2+C3); 
      %>
		</td>
    </tr>
  </tbody>
  </table>
<%
}
	
%>


</body>
</html>